/*
 * @Author: your name
 * @Date: 2021-06-27 13:18:40
 * @LastEditTime: 2021-06-27 13:45:17
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \6.26作业\yyds\router\home.js
 */
const router = require('koa-router')();
const auth =require('../middle/auth')
const { gettLists,addshop, delshop,setshopcount} = require('../controller/cart')
router.get('list',auth,  gettLists)
router.post('/list', auth,addshop)
router.delete('/list/:id', auth, delshop)
router.put('/list', auth,setshopcount)
module.exports = router;